<?php

namespace app\common\model;
/**
 * [AccountKeep  记账表]
 * @author [C。]
 * @return html
 */
class AccountKeep extends Base
{
    protected $name = 'account_keep';
    /**
     * 根据搜索条件获取佛事预约列表信息
     */
    public function getall($map,$field = '*',$order = ['c.id'=>'desc'])
    {
        $join1 = [
            ['app_member m', 'm.id = c.mid'],
        ];
        $join2 = [
            ['app_account_cate ac', 'ac.id = c.acid'],
        ];
        $result = $this->field($field)
            ->alias('c')
            ->join($join1)
            ->join($join2)
            ->where($map)
            ->order($order)
            ->select();
        return $result;
    }
}